<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class GearApiController extends Controller
{
    public function store(Request $request)
    {
        $dataOri = $request->input('data', '');
        $work_name = $request->get('work_name','');
//        $data = json_decode($dataOri,true);
        if($work_name){
            $bizRet = app('gclient')->doNormal($work_name, json_encode([
                'data' => $dataOri,
                'sign' => '', 
                'ga_traceno' => app('ga_traceno')
            ]));
            return $bizRet;
        }
    }
}
